<template>
    <div class="notice" >
        <div class="notice-list" v-for="item in noticeList" :key="item.title">
            <div class="notice-list-left">
                <i class="el-icon el-icon-chat-dot-round" style="font-size: 32px;color: #000000"></i>
            </div>
            <div class="notice-list-centent">
              <div>
                <el-button type="text" size="medium" class="primary-color">{{ item.typeName }}</el-button>
                <el-button type="text" size="medium">{{ item.title }}</el-button>
              </div>
              <div class="notice-content">
                {{ item.content }}
              </div>
              <div>
                <i class="el-icon el-icon-time" style="font-size: 14px;color: #999999;"></i>
                <span style="font-size: 14px;color: #999999">{{ item.createDate }}</span>
              </div>
            </div>
        </div>
    </div>
</template>

<script>
export default {
    name:"ColleagueBox",
    data(){
        return {
          noticeList: [
            {
              title: '渠道维护',
              typeName: '运营通知',
              content: `各位老板
              代收通道维护，请及时切走
              代收通道维护，请及时切走
              感谢支持`,
              createDate: '6 hours ago'
            },
            {
              title: '渠道维护',
              typeName: '运营通知',
              content: `各位老板
              代收通道维护，请及时切走
              代收通道维护，请及时切走
              感谢支持`,
              createDate: '6 hours ago'
            },
            {
              title: '渠道维护',
              typeName: '运营通知',
              content: `各位老板
              代收通道维护，请及时切走
              代收通道维护，请及时切走
              感谢支持`,
              createDate: '6 hours ago'
            },
            {
              title: '渠道维护',
              typeName: '运营通知',
              content: `各位老板
              代收通道维护，请及时切走
              代收通道维护，请及时切走
              感谢支持`,
              createDate: '6 hours ago'
            }
          ]
        }
    }
}
</script>

<style lang="scss">
.notice{
    width: 100%;
    max-height: 700px;
    overflow-x: hidden;
    overflow-y: auto;
    -ms-overflow-style: none;
    overflow: '-moz-scrollbars-none';
    scrollbar-width: none;  /*  火狐   */
  font-size: 14px;

}
.notice::-webkit-scrollbar {
    display: none;  /*  Chrome  */
    width: 0 !important ; /*  Chrome  */
}
.notice .notice-list:nth-last-child(1){
    border-color: transparent;
}
.notice-list{
    width: 100%;
    border-bottom: 1px solid #dcdfe6;
    padding: 10px 0;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
}
.notice-list-left,.notice-list-left img{
    width: 50px;
    height: 50px;
    border-radius: 10px;
    overflow: hidden;
}
.notice-list-centent{
    flex: 1;
    box-sizing: border-box;
    display: flex;
    flex-direction:column;
    justify-content: space-around;
  .notice-content {
    margin-bottom: 20px;
  }
}
.notice-list-centent p:nth-child(1){
    font-size: 14px;
    font-weight: bold;
}
.notice-list-centent p:nth-child(2){
    font-size: 12px;
    color: #999999;
}
.notice-list-right{
    width: 100px;
    height: 50px;
    padding-top: 13px;
    display: flex;
    justify-content: flex-end;
}
.notice-list-right span{
    display: inline-block;
    width: 52px;
    height: 24px;
    text-align: center;
    line-height: 26px;
    border-radius: 2px;
    border: 1px solid;
    font-size: 12px;
}
.notice-list-right-online{
    border-color: #0D9AFF;
    color: #0D9AFF;
    background: #DEEFFB;
}
.notice-list-right-outline{
    border-color: #FD41F0;
    color: #FD41F0;
    background: #FEEDFD;
}
</style>
